package com.ws.service.serviceImpl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ws.bean.RenralOrder;
import com.ws.bean.ReturnCheck;
import com.ws.dao.ReturnCheckDao;
import com.ws.service.ReturnCheckService;
import com.ws.util.Page;
@Service
public class ReturnCheckServiceImp implements ReturnCheckService {
	
	@Autowired
	ReturnCheckDao dao;	
	
	@Override
	public List<ReturnCheck> getChecks(ReturnCheck check, Page page) {
		return dao.getChecks(check,page);
	}

	@Override
	public int getCount(ReturnCheck check) {
		return dao.getCount(check);
	}

	@Override
	public int addCheck(ReturnCheck check) {
		return dao.addCheck(check);
	}

	@Override
	public int delCheck(Integer id) {
		return dao.delCheck(id);
	}

	@Override
	public int editCheck(ReturnCheck check) {
		return dao.editChek(check);
	}

	@Override
	public List<RenralOrder> getOrders() {
		return dao.getOrders();
	}

}
